const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 简化token 获取
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  // 简化用户信息 获取
  userInfo: state => state.user.userInfo,
  // 添加isLogin字段
  isLogin: state => (!!state.user.userInfo.userId)
}
export default getters
